<form action="{:url()}" method="post" class="form_single">
    <div class="box">
      <div class="box-body">
        <div class="row">
          <div class="col-md-6">
            <div class="form-group">
              <label>菜品名称</label>
              <span>（菜品名称，用于前端展示）</span>
              <input class="form-control" name="name" placeholder="请输入菜品名称" value="{$info['name']|default=''}" type="text">
            </div>
          </div>
            
          <div class="col-md-6">
            <div class="form-group">
              <label>价格</label>
              <input class="form-control" name="price" placeholder="请输入价格" value="{$info['price']|default='0'}" type="text">
            </div>
          </div> 
          <div class="col-md-6">
            <div class="form-group">
              <label>库存</label>
              <input class="form-control" name="inventory" placeholder="请输入库存" value="{$info['inventory']|default='0'}" type="text">
            </div>
          </div>
          <div class="col-md-6">
            <div class="form-group">
              <label>推荐指数</label>
              <input class="form-control" name="recommend" placeholder="请输入推荐指数" value="{$info['recommend']|default='0'}" type="text">
            </div>
          </div>

           <div class="col-md-6">
            <div class="form-group">
                <label>菜品图片</label>
                <span class="">（请上传单张图片）</span>
                <br/>
                {assign name="url" value="$info.url|default='0'" /}
                {:widget('file/index', ['name' => 'url', 'value' => $url, 'type' => 'img'])}
            </div>
          </div>
            
            
          </div>
        </div>
        
      <div class="box-footer">
          
        <input type="hidden" name="id" value="{$info['id']|default='0'}"/>
        
        {include file="layout/edit_btn_group"/}
      </div>
        
      </div>

</form>